Fix typo, change variable type