fixing weird slug bug