fix error at start up