fixed the behavior on multiple values