made unparenting current layer not crash the IDE