small fixes to make mercury work better with bootstrap