Fixed bug related to fs variable