Fix state box by seeing if states is empty object