small fix

fixed a bug that made a median int, not float