Fixed bad ref on Invalid Operation