draw endpoint fix