fix broken param passing