fixed compilation errors caused by recent changes to update site code