Fixes an warning/error message of functionality which will be deprecated

Signed-off-by: Michel Verbraak <info@1st-setup.nl>