view.remove bug fixing