fix small bug in referencing for browser