Fixed document problem