fixed bug not returning invisible value so replacing files