Try to prevent TypeErrors