fixed nil value in source controller