Added special case for 'id X already defined' as X may be really messed up