fixing some compiler warnings around attributes not being set correctly