Fix wrong function calls