protect from empty query string
fix missing quote