fixed bug with empty state