How to fix this issue at programming level at