fixed bug causing compilation error