Bind funtion doesn't return the corrent type

Bind function should return the same type of fn parameter