Fixing issue with object mode.