fixed weird startup issue