fixed routing bug with captures