[f] Some fixes + trainer loading crash, Thanks PSf