fixed behavior of returnemptyrows and noneonempty