fixes error in php code