fix bugs
fix a method