make so that won't break when no current page