fix bucker could be nil bug