Removed dead code that was causing an error