Hotfix to major silly mistake

Got the if statements the wrong way around!