Added the commit stm after remove entity