Fixing PHP notices.