fixed a profile bug in views