fix issues for tickets https://github.com/restlet/restlet-marketing/issues/41 and https://github.com/restlet/restlet-marketing/issues/63