fixed bug with edit mode