fix length of query result calc
fix update_showing