Possible fix for undefined attribute default