added example gif and fixed possible bug