fix bug in method defaults