[fix] boolean identifier is not loaded correctly from Memory
[fix] correct divided by zero error and add more context conditions for bool