Check if fcl files are opened correctly. Also fix some bug, but I dont know what was wrong and why it works now.