fix laser.last_firing casting