Fixed begin path issue with drawing