hotfix for bug found in UT around attr being wrong type