Fixes attribute hash