{code doesn't work] nullpointer on intent..
fixed subtle bug of intent