fixed issue with motion effect being applied when closed