Fixed crash bug upon changing server path