fix a bug when non-animatable layers are present in the workspace