fix ticket 2341

https://issues.jboss.org/browse/RAILO-2341