Activity valueOf bug fixed.

Signed-off-by: yyenigun <yyenigun@gmail.com>