Bug fix #1 caused by isset() function and the default value of variables