the girl was unhappily reunited with her father , forced to contrive some other adventure for her own amusement , but the king had learned his lesson and was not long in finding ways to teach the girl a little sense , in possessing which , he hoped she might actually live happily ever after .