Fix wrong site of the created button when using type "link"