Fixing the blank card issue on state restore.

This fixes the problem of blank cards after state change by flipping
the view flipper if necessary.