-fixed some basic errors in bootstrap-related code