fix photo machine bug I created