static module bug fix for cloning objects