Fix deleteView