fixing sensing at startup