bug fix for locked
Merge pull request #61 from katsuhide/bug_fix_for_locked

bug fix for locked