Fix truthy errors bug as suggested by JoelQ.