Strange errors in code and on page