bug fix for robot creation