fixed minor compilation errors in previous commit.