fix type of in previous commit. Issue #24