fix for #1 - bad dynamic methods when hot reloading.