Fix notices (undefined constants)