Syntax error on empty result is fixed.