Solved error refering to typing of conditionals