fix copy-paste bug; TODO: 1. the while loop issue, need a cache; 2. for the 2nd parameter, the usemap is null