fixed mysql rowCount issuse