Fix for mysql compat