Fixed on_details issue
Merge pull request #1364 from psav/on_details_fix

Fixed on_details issue