bug fix #4040:remove unnesessory code which was also reason of the bug

Signed-off-by: Smita Kumari <kumarismita62@gmail.com>