Fixed right click issues (issue #169), hash read out of bounds