bug fixed for compile error