Fixes error when no previous map exists.