Fix a bug with top, if the number given is larger than the number of rows it should return them all.