fix bug that forst . is not allowed