Fixes a error when trying to stream a file