fix for php notice message in preview