fixing power for nonnegative integers

fixes #8650