Fixed wrong ids upon loading