fixed an error with optimize