Fixed equal signs in normalize, fixed invert