Fix bug MaterialPage and bug calculator