Physics2D.OverlapBoxAll doesnt only include the given layer

The following is just an extract from my code, though it is the importent part. In the script I specified that only the enemy layer should be included and checked for collider overlap. Now when played, I encountered that every layer would be detected. The layer enemlayer is clearly defined, so I dont know where the problem lies. Player as well as the ground get detected as well. Would be really glad for an answer.

Collider2D[] hitEnemies = Physics2D.OverlapBoxAll(attackpoint_D.position, attackpoint_D.localScale, enemyLayer);
foreach (Collider2D target in hitEnemies)
{
    if (target.GetComponent<EnemyInfo>() != null)
    {
        target.GetComponent<EnemyInfo>().TakeDamage(attackdamage);
        objectjump = true;        
    }
}