fix bug with instance ready state