fixed home, away bug