Had to move the populate maps function.