fix a bug in -collect-const :const