Fixes in attribute reflection