Removed bug in edit and clear