fixed machine 3 bug