fixed methods and members, being drawn, and also fix a warning