Fixed assertions and an invalid constructor.