Update common.lua

Added Brandon's protection code