Add api for disable expand.