Fix the offset of the clicked element