Fix type specification

Fixes dialyzer error