fix a bug in uniform feature