Fix positioning of #document