fix undefined base