It is not working the way you expect