fixed error on zero results