Fixed API bug in processing of module kwargs