Replaced deprecated function for 2.4 compatibility

Without this performing a dump will result in errors.

Tested and working in my environment.