fixed the null pointer problem with look

look null pointer fixed