Showing wrong output