fixed selection statement error