fix bug which cause leo_storage can't stop correctly