Fixed parameter handling in compiled function