Fixed applying bug of edit-mode