Fixes bug with extra char