fix success page - calling undefined variable