fix start_end transition problem