fix undefined constants