Fixed deprecated function, didn't cause error, just keeping it modern