Type checking (implict parameters) bug