[misc] Fixed performance issue caused by 8f4ade9f239444b2fd6b9d1c65e994a290e37153