fix bug with kwargs