Fixed torch bug when placing near edge.