fix unbound elapsed variable
fix change levels