fix type, closes #1