Fixed incorrectly handled error check for longchars