fix firefox reference error