Fixing bug that caused angular to crash when not including some attributes.