Fix for file get contents errors