Bug fix: Could not convert Boolean to Integer.