Fixes repeated attribute name in function declaration