fixed: PHP notice undeclared variable