fix a bug in result, thanks to Liusic