fix for the constructer

using not the given value when calling the parent class