fixes an issue in server