bug when sin file doesn't exist