fixed bug on first view