fixed robot constructor errors