Fix random bugs on language and query show page