Fix the error when file size exceeds maxBytes

See #5