moldft bugfix

Fix for moldft crash