Modified error helper to fix tiles def