fix notice error for undefined constants