Fixed PHP notices.