Fixed bug that would cause crash if LGRF was not used.