Fix crash in on_punchnode() and remove random() from /fixlight