Fix type for "q" field