fix passing kwargs parameter as dict