fixed filelock bug