Corrected crash bug in published version.