fix when adding module to a page