Prevent npe