Fixed auto compile errors