fix for only applying one bug