Fix documents controller