Fix using wrong data type (fixes #34)