fixed setting of home variable