Fixed multiple code sample execution