FIxed the null bug in checkout page