Fixed bug in selecting logging response density