Cannot perform 'get' operation with data of this type : boolean