Change the end flag from . to end