Fixed type specs to satisfy dialyzer.