fixed incompatibility with old LR