Fixing filename bug