Fixed: external variables with type "function" didn't work