fix broken function call