fixing bugs with reconfigure