Missing Laser Power in G-Code

Sometimes I miss the power setting of the Laser module in the g-code file. The code looks like this.

power(%): 0

G21
M106 P0 S255
G0 F3000
G1 F200
G0 X-2.48 Y-3.72
M3

With this code the Laser module is always set to 100%.

;power(%): 15

G21
M106 P0 S255
G0 F3000
G1 F200
G0 X-9.00 Y37.30
M3 P15 S38

This would be correct, (set the Laser to 15%) Sometimes i get the correct code, sometimes the laser is set to 100% (no parameters after M3) with the same settings in luban. Has anybody an idea why this happens? I use the Version 4.0.3. Also the snapmaker has the actual firmware installed.