fixed stupid string parsing bug