Make sure you load from your IEC device using the LOAD command from basic. Don't enter any other command or load an other programm just after boot. If your sd2iec device has device ID 8, use LOAD "*",8,1. I've tested it on a real 1541 drive. If required, I'll publish another (larger) version with no loader hack.