fix when there are 0 maps