fixed the one-character bug that caused 4 hours of head bashing