fix nil pointer use
oh god