I was taking pictures at a church function last night. Using my D-90 and, just bought , 18-105. Every picture at 18mm was out of focus and bad depth of field. Switched to Auto, no better. Switched to no flash, no better. AHAH - a flash of brilliance! switched the lens from M to A. All was well.