The end of day bug can often be attributed to obtaining a glitched "person" grade slave. If you obtained a slave and then this happened, altering the slave's grade or getting rid of them should fix it.
Lab Assistant needs a lot of work. You can also assign a prisoner to the position.