Fixed several notices.