fix https://issues.jboss.org/browse/RAILO-1747