fix tip bug