fix redirecting to home page when out of credits