fix error

global object 'state' not accessible.
fuck it. this code only needs to run for 1 more day.