fix error at start