Fixed the constructor for control