Fix for Ticket #854

This defect/ bug is fixed according to this ticket : http://eden.sahanafoundation.org/ticket/854

This bug fixing is voluntarily .