fixed crash after dependencies are installed