fixed errors when there is no current production