Fix type mismatches

Thanks to Random832 for the patch.
2 files changed