Fixed bug in gaps import