Fixed small issue with php notices.