fixed bug that crashed server @darrencattle thanks