fixed bugs in fix_timeline after hiding