Fixed a bug where newly created app_attributes wouldn't be initialized correctly