Fix desync of kernel and user code
Merge pull request #24 from deadNightTiger/patch-1

Fix desync of kernel and user code