fix many terrible bugs! (stupid typo)