Fixed PHP notices