fixed small floor issue with median