Fixed crash bug

Fixed a crash bug that was caused by an inorrect config