Dev: move $previewmode=false before $previewmode test to don't have some PHP error