fixed ampersand bug #1027