Changed order for header error