Fixed a strange bug