#fixed bug that crashed the tool when loading