Fixed error where script couldnt be used since m_end argument wasnt taken.