fix laser_duration casting