Fixed type in function