Fixed code to match dependency