fix the bugs in drawing laser beams