fixes issue #52