fixing bin ref