Fix apple detection and tail growth