twice callback bug fix