fixes https://github.com/ck--/ann/issues/117