Fixing popup binding