fix bugs

1. null point exception