Added missing scope to constructor