Fixed 'home' query error