Fix for '=' instead of '==' typo on conditional