Fixed eof_ending in classmap