Fixed median not being median