[PATCH] Fix deprecation warning