Fix bug when trying to log an object via shortcuts