Bug: missing spaces before ] in if; '==' instead of '='