Fixed sign check on non-existent buffer