Fixed minor bug that threw PHP Notice