fixed bug where warning would show up on index page