fix true false primitive bug