Implemented default constructor. Fixed bug in other constructor too.