Fix double period bug