fixed malloc call on shortcut_tools