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