fixed plot3 error with wrong numeric coehercion