Fix: Ensure version in query is a string