Update stack_0

Increased security, logic of program behaviour, 1 bug was found and fixed