Fixed some weird bug

Not sure how to describe it