Fixed crash that would occur when opening program for first time
Fixed duplication bug