empty line crash bug fixed