fix type (thanks @scottchamberlain