fix integer to boolean parsing