Fixes bug durig creation of the FileState