removing undef before resource being exported

otherwise it doesn't wor