Fix timeline resize bug