Fix: Exception after dropping a new element from the palette