fix filesystem bug