Trying to fix edge case of blank page