Fix then period after end