Slice 9 scaling and rotation

when i have slice 9 enabled and i rotate a movie clip the slice 9 doesnt function right. my rounded corners do not maintain their curve anyone know a way to fix this.
doesnt matter if i do it with script or keyframe animation