fixed compile errors introduced by previous commit