fix bug in result