Fixed getattr problem