Fix buffer->draw tool bug