Fixed beforeDelete id issue