fix spelling in log entry
check overwriteLayoutRef that the layout exists