Fix for unexpected end of filewq