v1.45: some bug fixes