Fixing bug with getting hours by family id