Constructor function call error, fixed