fixed null entry error from titles in main.js