Fixed error handler setup - bitwise operators should now be evaluated correctly.