Fix query port