Fix position type set on start instead of on end
Fix typo in custom click event