fix 'undefined local variable or method defaults'