bugfix: back to rewrite this part for build error

Signed-off-by: Liu Jianping <heljoy@meizu.com>