Fix for mysql 5.6