Removed deprecation warning on build