fix for mysql quirks