fixed bug for first opening server