fixed some bug that I couldn't use port 1000