fixed build errors;