Fixing bug that was causing stub functions to be used in browser