fix for mysql