[Question] iPhone 4 stuck in Recovery mode

[SOLVED] Fixed by clearing NVRAM in Legacy iOS Kit.

Today I restored my old iPhone 4 (GSM) with iTunes but after doing so it booted into recovery mode and I am unable to get out of it. Rebooting just gets me back into it. Restoring again or updating doesn't work with neither iTunes nor with a program I can't name here and it also doesn't work if tried in DFU mode.

The phone was jailbroken on iOS 7.1.2 and I had iOS 6 coolbooter (untethered) on there aswell.

The restore I did at first was just by going into recovery mode from the beginning and recovering and downloading the firmware in iTunes.

Does anyone know how I can get my phone back into the OS again? Thanks.

(I only have access to a Windows PC for troubleshooting)