fixes #7 for ker