fixes page saving