Fixing syntax warning