Fixed crash after commit.