I answering myself because I think I found the issue. Seems that sothing was wrong with the file. And because I'm loading the file from the resources was needed to recompile the resources file for changes to the file to applied. I thought that the file read from its path, but seems that from resources is loading an instance of the file and not the file itself.
Anyway, seems that my issue solved.