Fixing meta box logic