Fix bug in Run method when level is nil