Fix for http://eden.sahanafoundation.org/ticket/1626