Fixed Codacy issue that __proto__ is deprecated