fixed uninitialized value in SignalHandler
added isZero() method to rect