fix bug for getindex(::Number, ::Real)