Fixed a broken comparison in view