fixed a bug about negative offset at onTail event