Removed nullpointer in proxy