Fixed Redirect to secure bug