Fixes bug in alchemySorter.py