Fix bug "undefined offset..." on home and video pages