fix layout not having filename in error