fix method with limitation using symfony filesystem