bugfix related to auto targets