Fix error in case of delete all contents in home