fix for mercury on production