added check for missing buffer