Fixed a bug in deleting students