Bug, security code removing left zero and broken tests