Fix that the rectangle didn't paint as it didn't have a size