add patch from Trac