fixed issue with modal only working on the first checkout