Loop frame fix in model editor