fixed bug with fail at startup