Fixed small type in function