Fix php errors in nerd_sessions