Fixed bugs with copying styles

I fixed a bug dealing with copying styles, got it working with any
softchalk package