Fix bug when submitting single string