Probably, fixed some bugs

Hi Sebastian!

These snippets were marked as erroneous. Sure, the IDE is definitely not always right! But in this case it might be. I have not tested the changes but it makes kind of sense that way.
Please have a look!

Best

Marius