Switched from cloning layers using MSLayer:duplicate to MSCanvasActions:duplicate method. No more weird bugs anymore! :)