Changed session renew procedure, fixes a bug that shows error alert