fixed bug in compile error