fixed segfault when no crop exists