Solved issue with function that has wrong name