Fixed some ketcher issues