PHP notices fix