Fix #1 nullPointerException error at sort feature