fix fullpage function.