Fixed bugs that toolbar buttons doesn't work