Fixed kernel stack not switching between tasks