Put a : after Shape
Remove AttachedToWindow method
Check if NULL to prevent crash in R1A4