Fix Deprecation Error