fix type mismatch from #1326