Fix add backend dialog buggy behaviour