fixed multiple instances issue