Fixed callback being called multipletimes