fixed dict getattr calls