Fixed auto and inherit