fixed emitting true and false values