fixed message locking