small sjf.cpp fix