Fix possible bug in cmd !nextmap