Resolved this by putting a condition for calling functions which were causing...