fixed compiling bug