Mujir/Vinay - fix for checking for invalid results