Fixed logic for editing