Fix bug where magnetPoint was overrided by default one