Avoid TypeError popping up more often than not