Fixed error in accessing mock data.