fixed backend npe