fix bug with dynamic boolean values