Fixed error in designer_functions.js