added fixed code to surepay repo.