fix constructor problem