Bootstrap component throwing an exception