fixed optimization when user not using innodb