fixed home ref error