fixed problem when calculate median