Fix:Control.c val may be used unitialized in this function