fixed a bug that if the content type didn't exist then an error was thrown.