modified bug about lack of rows