Fixed issue when adding a block
Merge pull request #263 from Bladrak/fixedIssueWithAddingBlock

Fixed issue when adding a block