Fixed row deleting bug