Fixed Crash error in macrofunctionality.cs