Finnaly  the code is working proporly and bugless.
For some reason Visual Studio didn't commit these.