fixed a bug: not displaying data when first logging in