fix initializing code execution