fixed minor bug+row count