Revert "Bugfixes for Main.lsl"

This reverts commit f165c5a8d82c79f7ed817ae11900b332c366c868.