check error in normalize by median

`=` is the assignment operator; `==` is the test-for-equality operator.