bug fixed: safety range only checked on first axis