fix bug where bool props would always be set to true even if provided value of false