Just for records, the script was working fine in after effects cc 2018 but for some reason when AE bugged out and i forced it to quit from the task manager i started getting this error
Code Error in Extendscript Debugger

Any help would be really appreciated! Thank you guys.