Fixed where saveAttributes was overwriting the entire document on update