fix fileSystemManager checking error and existence