fixing stupid small bugs