correcting empty map