Fix typo and restrictive type.