fix some gang functions

fix some gang functions