fix bug in pimpl