API apply_changes problem

This should be fixed.
Thanks!