Fix crash when try to join an null thread
Fix pixmap assert raise when delete