fixed major server crash bug with the restart button