Fixed annoying php notices.