Fixes instance copying