Fixed a weird bug