Fixed multiple bugs with kwonly arguments