Fixed a bug(I tested it for the first time)