Fixed problem with removing last subtask and notes on delete