constructor bug correction