fixes bug with inject