Fix funtion call