fixing error reporting for attrload/store