Fix bug caused by dynamic typing in combination with stupidity