Fixed serial lock problem