Fixed a problem referencing the request variable (i.e. wrong variable name).