Fixed a bug with copying skeleton stuff