Fix home model query