fix opening popup