Fixed function for editor
modified taskeditor