fix sprite selection not cleared when layout changed