改善Open相关的实现.

Signed-off-by: Jack <jack.wgm@gmail.com>