fixing weird bug