fixed errors in the Machine class