Fix refinery homepage previewing gives error