fixed an issue causing duplicates when loading the saved layout