fix minnor bug