fix error after load