fixing server start bug