Fixed a bug(Thanks axeman)

A bug axeman spotted