Fixed weird bug with views having a key