fixed fetchEntity optional wrapping bug in Server