Fix apr schema