fixed bug that happened when surfline was null