Fixed if pk in views