Fixed compiling bug