Fixed a bug occuring when no adapation frames were specified