diff --git a/include/libcotask/task.h b/include/libcotask/task.h
index 25d2e94..f6aa46d 100755
--- a/include/libcotask/task.h
+++ b/include/libcotask/task.h
@@ -119,9 +119,8 @@ namespace cotask {
                 return ptr_t();
             }
 
-            typename coroutine_t::ptr_t coroutine =
-                coroutine_t::create(reinterpret_cast<a_t *>(UTIL_CONFIG_NULLPTR), alloc, stack_size,
-                                    sizeof(impl::task_impl *) + private_buffer_size, action_size + task_size);
+            typename coroutine_t::ptr_t coroutine = coroutine_t::create(
+                reinterpret_cast<a_t *>(NULL), alloc, stack_size, sizeof(impl::task_impl *) + private_buffer_size, action_size + task_size);
             if (!coroutine) {
                 return ptr_t();
             }
diff --git a/test/cli/cmd_option.h b/test/cli/cmd_option.h
index edfe345..aab154a 100755
--- a/test/cli/cmd_option.h
+++ b/test/cli/cmd_option.h
@@ -444,7 +444,7 @@ namespace util {
             inline void start(int argv, char *argc[], bool is_single_cmd = false, void *ext_param = NULL) const {
                 typedef const char *conv_char_t;
 
-                start(argv, reinterpret_cast<conv_char_t *>(argc), is_single_cmd, ext_param);
+                start(argv, const_cast<conv_char_t *>(argc), is_single_cmd, ext_param);
             }
 
             /**