* Removed duplicated code.
 * Fixed a wrong hash removal due to the click event propagation.