Fixed code problem