Fixed always delete bug