bug fix on referred open