fix initialization when slaveok is allowed