@First try to fix the Error without any special modification of the dll.
When everything work alright, then u can modify the dll step by step

When something went wrong and u get errors like this, then work with code caves with the old Kal dll
-MeUndercover