You are overwriting the webapp name variable.