Fixed  PHP notices