Fixing broken loop (since I did not include the ribbon or footer in my layout, the SmartLayout directive never finished