Fixed the crash bug (char arrays were causing it, possibly overflow?)