view bug fixes; array of locks bug