Bugfix while deleting records (self::getInstance Method not found)