fixed bug with boot completed logic