add break condition for accessors

Signed-off-by: anti-freak <antifreak2011@gmail.com>