fix for mapping logical value when element is array