fixed part of target lock bug