Fix conditionals (is vs ==)