Bug fix

pointed out by Rajeshkumar S