fix bug with updating animal attributes