period command bug fix