Bugfix reading files