fix check for missing prototype on load