Fixed some weird bug